package javaCode.chapter09.interface_;

public class InterfaceExercise02 {
}

interface A_ {
    int x = 0;
}

class B_ {
    int x = 1;
}

class C_ extends B_ implements A_{
    public void pX(){
        //System.out.println(x); //🙅错误，不明确 X 是谁
        //可以明确指定x
        //访问接口的x 用A_.x  访问父类接口的x 用super.x
        System.out.println(A_.x + " " + super.x);
    }

    public static void main(String[] args) {
        new C_().pX();
    }
}